/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html {
    height: 100%;
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    height: 100%;
    color: #333333;
    margin: 0;
    background-color: #F9FAFC;
}


#editorjs_box {
    width: 100%;
    height: 100%;
    outline: 0px solid transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #182431;
    opacity: 0.9;
    user-select: none;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
}

/*滚动条样式*/
#editorjs_box::-webkit-scrollbar {
    width: 4px;
    margin-top: 16px;
    margin-bottom: 16px;
}
#editorjs_box::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px #A5ADB7;
    background: rgba(0,0,0,0.1);
    margin-top: 16px;
    margin-bottom: 16px;
}

/*#editorjs_box::-webkit-scrollbar-track {*/
/*    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);*/
/*    border-radius: 0;*/
/*    background: rgba(0,0,0,0.1);*/
/*}*/

#note-content {
    font-size: 16px;
    letter-spacing: .015em;
    line-height: 1.675rem;
    padding: 16px;
}

#note-title {
    font-size: 1.5rem;
    line-height: 1.67;
    font-weight: bold;
    outline: none;
    word-wrap: break-word;
    word-break: break-all;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    letter-spacing: .01em;
    white-space: break-spaces;
    caret-color: #fb0;
    padding: 16px 16px 1px 16px;
}

/*.origin-title {*/
/*    outline: none;*/
/*}*/

#note-title:focus:before {
    content: none;
}

#note-title:empty:before {
    color: '#ccc';
    content: '标题';
    opacity: .2;
}

#note-content input[type=checkbox] {
    cursor: pointer;
    position: relative;
    width: 18px;
    height: 18px;
    font-size: 12px;
    margin-right: 8px;
    vertical-align: middle;
}

#note-content img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    margin: .5px;
}

/*大字体*/
#note-content size {
    font-size: 1.375rem;
    display: block;
}

#note-content right {
    text-align: right;
    display: block;
}

#note-content .ul-bullet {
    padding-inline-start: 24px;
}

#editorjs[placeholder]:empty:not(:focus):before {
    content: attr(placeholder);
    font-size: 24px;
    color: #9b9b9b;
}

.note-checkbox:checked {
    background: #F88805;
    border: 1px solid #F88805;
    outline: none;
    opacity: 1;
}

.note-checkbox {
    width: 18px;
    height: 18px;
    line-height: 22.4px;
    background-color: #ffffff;
    border: 2px solid #182431;
    opacity: 0.6;
    -webkit-border-radius: 50%;
    -webkit-appearance: none;
    -webkit-user-select: none;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 6px;
    outline: none;
    padding: 0;
    position: relative;
    display: inline-block;
    -webkit-transition: background-color ease 0.1s;
    transition: background-color ease 0.1s;
    vertical-align: top;
    cursor: default;
    user-select: none;
}

.note-checkbox:checked+span {
    text-decoration: line-through;
    margin-left: 10px;
    color: #F88805;
    opacity: 0.4;
}

.edit-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.button-box {
    width: 100%;
    height: auto;
    background-color: white;
    display: none;
    justify-content: space-around;
    padding-bottom: 6px;
}

.button-box div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-box img {
    margin-bottom: 6px;
}

.button-box span {
    font-size: 20px;
}




.bloc {
    display: flex;
}

.pm-block {
    outline: none;
}

.pm-voice {
    font-size: 16px;
    line-height: 30px;
    width: 100%;
}

.pm-voice .ap-container.big {
    padding-right: 16px;
}

.pm-voice .ap-container {
    display: flex;
    -webkit-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-align-content: center;
    align-content: center;
    padding: 4px 16px 4px 16px;
    border: .5px solid rgba(98,0,238,0.06);
    height: 44px;
    direction: ltr;
    border-radius: 12px;
    background-color:rgba(98,0,238,0.06);
    color: #6200EE;
    mix-blend-mode: normal;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
}

.pm-voice .ap-container .ap-btn-play-pause {
    font-size: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    position: relative;
}


.pm-voice .ap-container .ap-btn-play-pause .ap-icon-play {
    display: initial;
}

.pm-voice .ap-container .ap-btn-play-pause .ap-icon-pause, .pm-voice .ap-container .ap-btn-play-pause .ap-icon-play {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pm-voice .ap-container .ap-btn-play-pause .ap-icon-pause, .pm-voice .ap-container .ap-btn-play-pause.playing .ap-icon-play {
    display: none;
}

.pm-voice .ap-container .ap-btn-delete {
    font-size: 17px;
    width: 17px;
    height: 16px;
    margin-left: 37.5px;
    display: inline-flex;
    align-items: center;
    align-content: center;
    z-index: 2;
    transition: opacity .1s;
}

.pm-voice .ap-container * {
    user-select: none;
}

.pm-voice .ap-container .ap-duration {
    font-size: 16px;
    width: 48px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
}

.pm-voice .ap-container>:not(:first-child) {
    margin-left: 8px;
}

.ap-container.big .tl-container {
    flex-grow: 1;
}

.tl-container {
    --offset-time: 0s;
    height: 100%;
    position: relative;
    box-sizing: content-box;
    overflow: visible;
    color: #6200EE;
}

.pm-voice .ap-container .tl-container>svg {
    display: none;
}

.tl-bg-cont.show {
    display: flex;
}

.tl-bg-cont.background {
    opacity: .2;
}

.tl-bg-cont {
    position: absolute;
    height: 100%;
    display: none;
    -webkit-align-content: center;
    align-content: center;
    -webkit-align-items: center;
    align-items: center;
}